package com.lz.manage.controller;

import com.lz.common.core.controller.BaseController;
import com.lz.common.core.domain.AjaxResult;
import com.lz.manage.service.IStatisticsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 统计类
 *
 * @Project: networkStorage
 * @Author: YY
 * @CreateTime: 2025-07-17  19:52
 * @Version: 1.0
 */
@RestController
@RequestMapping("/manage/statistics")
public class StatisticsController extends BaseController {
    @Resource
    private IStatisticsService statisticsService;

    /**
     * 统计文件类型
     * @return
     */
    @GetMapping("/fileType")
    public AjaxResult fileType() {
        return success(statisticsService.fileType());
    }

    /**
     * 统计文件标签
     */
    @GetMapping("/fileTag")
    public AjaxResult fileTag() {
        return success(statisticsService.fileTag());
    }

    /**
     * 统计文件后缀
     */
    @GetMapping("/fileSuffix")
    public AjaxResult fileSuffix() {
        return success(statisticsService.fileSuffix());
    }
}
